import { defaultRequest as rq } from "./request";
import type { R } from "./request";

/**
 * 登录
 * @param params 
 * @returns 
 */
export const loginApi = (data?: object): Promise<R<any>> => {
  return rq.post<R<any>>("${BSMS_URL}/login", data);
};

export const logoutApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/logout", {params});
};

export const checkApi = (params?: object): Promise<R<any>> => {
  return rq.get<R<any>>("${BSMS_URL}/token/check", {params});
};
